type PagingModel<T> = {
  pageNo: number
  pageSize: number
  rows: T[]
  totalPage: number
  totalRows: number
}

type PullOptions<T> = {
  loading: boolean
  finished: boolean
  refreshing: boolean
  finishedText?: string
  rows: T[]
  totalRows: number
  totalPage: number
  noData: boolean
}

type QueryModelBase = {
  pageNo: number
  pageSize: number
}

// 选项数据类型
type SelectedDataModel = {
  code: string | number
  value: string
  [propname: string]: any
}

export { PagingModel, QueryModelBase, PullOptions, SelectedDataModel }
